<template>
	<view class="com-chat-invite">
		<view class="invite-box" v-if="msnItem.msn_type == 11">
			<view class="text">{{msnItem.msn}}</view>
			<view class="btn" @click="clickAccept">点击接听</view>
		</view>
		<view class="rtc-time-box" v-if="msnItem.msn_type == 12">
			<text class="yyfont yy-record-video"></text>
			<view class="text">{{msnItem.msn}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:'chatInvite',
		props:{
			msnItem:{
				type:Object,
				default:function(){
					return {}
				}
			}
		},
		data(){
			return {
				
			}
		},
		methods:{
			clickAccept(){
				this.$emit('clickAccept');
			},
		}
	}
</script>

<style lang="scss">
	
	.invite-box {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		.text {
			font-weight: bold;
			border-bottom: 1rpx solid #eee;
			padding: 10rpx 0;
		}
		.btn {
			padding: 10rpx 0;
			color: #007EEB;
		}
	}
	.rtc-time-box {
		display: flex;
		align-items: center;
		padding: 15rpx 10rpx;
		.yyfont {
			margin-right: 10rpx;
		}
	}
	
</style>